<?php
  $username=$_GET['user'];
  $password=$_GET['password']; 

  $arr1=['zhangsan','lisi'];
  if(in_array($username,$arr1)){
      echo "用户名已存在";
  }else{
    echo "用户名可用";
  }
?>